const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
    mode: "development",
    entry: "./index.js",

    output: {
        filename: "js/[name].[chunkhash].js",
        path: path.resolve(__dirname, "../dist"),
    },
    devServer: {
        compress: true,
        port: 8080,
        hot: true,

    },
    plugins: [
        new HtmlWebpackPlugin({
            template: "./index.html",
        }),
    ]
}